import {
  Login,
  NotFound,
  Home,
  ArticleLists,
  AddArticles,
  EditArticles,
  ArticleItemLists,
  AddArticleItems,
  EditArticleItems,
  UserLists,
  AddUsers,
  EditUsers,
  VideoLists,
  AddVideos,
  EditVideos,
} from "../views/index";

export const mainRouter = [
  {
    pathname: "/login",
    component:Login,
    excat: true,
  },
  {
    pathname: "/home",
    component: Home,
    excat: true,
  },
  {
    pathname: "/404",
    component: NotFound,
  },
];

export const homeRouter = [
  {
    pathname: "/home/articleLists",
    component: ArticleLists,
    excat: true,
  },
  {
    pathname: "/home/addArticles",
    component: AddArticles,
    excat: true,
  },
  {
    pathname: "/home/editArticles/:id",
    component: EditArticles,
    excat: true,
  },

  {
    pathname: "/home/articleLists",
    component: ArticleItemLists,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: AddArticleItems,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: EditArticleItems,
    excat: true,
  },

  {
    pathname: "/home/articleLists",
    component: UserLists,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: AddUsers,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: EditUsers,
    excat: true,
  },

  {
    pathname: "/home/articleLists",
    component: VideoLists,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: AddVideos,
    excat: true,
  },
  {
    pathname: "/home/articleLists",
    component: EditVideos,
    excat: true,
  },
];
